home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-11-24 | 1.5 KB | 50 lines | [TEXT/GEOL] |
- Item 9384696 24-Nov-89 14:30
-
- From: MADA2 MacApp Dev Assoc, Curtis Faith
-
- To: MACAPP.TECH$ MacApp Technical
- MACAPP.TEST MacApp SQA Team
- MACDTS Macintosh Developer Tech. Supt.
-
- Sub: Possible TWindow Bug
-
- I am not sure whether this is a bug or just a difference in philosphy but:
-
- TWindow being a TView should obey the size determiners as much as they might
- apply. Specifically when one specifies SizeFixed as one of the determiners
- then the resizeLimits should be set to that size for both minimum and maximum,
- thus disabling size changes in that direction. One might want a window that is
- growable only vertically, thus specifiying a horizontal determiner of sizeFixed
- should accomplish that.
-
- The changes to make this happen are minimal:
-
- In TWindow.IRes and TWindow.IWindow declare a variable:
-
- VAR
- theLimits: Rect;
-
- replace this line:
-
- SetResizeLimits(gStdWSizeRect.topLeft, gStdWSizeRect.botRight);
-
- With the following lines:
-
- theLimits := gStdWSizeRect;
- IF fSizeDeterminer[h] = sizeFixed THEN
- BEGIN
- theLimits.right := fSize.h;
- theLimits.left := fSize.h;
- END;
- IF fSizeDeterminer[v] = sizeFixed THEN
- BEGIN
- theLimits.top := fSize.v;
- theLimits.bottom := fSize.v;
- END;
- SetResizeLimits(theLimits.topLeft, theLimits.botRight);
-
- That will do it.
-
- - Curtis
-
-